/* 
 * File:   TerrainDatasource.h
 * Author: nrechten
 *
 * Created on 18 April 2011, 16:32
 */

#ifndef NRPSTG_TERRAIN_DATASOURCE_H
#define	NRPSTG_TERRAIN_DATASOURCE_H

#include "Terrain.h"

class TerrainDatasource {
public:
    TerrainDatasource();
    virtual ~TerrainDatasource();
    virtual Block* load_block(UNIT* coord, UNIT coord_depth, UNIT lod)=0;
private:

};


class DummyTerrainDatasource: public TerrainDatasource {
public:
    DummyTerrainDatasource();
    virtual ~DummyTerrainDatasource();
    Block* load_block(UNIT* coord, UNIT coord_depth, UNIT lod);
    UNIT ground_level[21];
private:
    bool _is_underground(UNIT* coord, UNIT coord_depth);
    UNIT _rand(UNIT* coord);
};

#endif	/* WORLD_H */

